@import "../../style/modules/function";

.search-wrapper-template {
    z-index: 100;

    &.show-full {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;

        .search-wrapper-template-input {
            input {
                border-radius: 3px;
            }

            button {
                display: block;
            }

            .clear-text {
                left: auto;
                right: rpx(95);
                font-size: rpx(40);
            }
        }

        .search-wrapper-template-modal {
            display: block;
        }
    }

    .search-wrapper-template-input {
        height: rpx(90);
        padding: 0 rpx(30);
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;

        .input {
            position: relative;
            height: rpx(70);
            width: 100%;
            display: flex;
            font-size: rpx(28);
            overflow: visible;
        }

        input {
            flex: 1;
            height: 100%;
            margin: 0;
            padding: 0 15px 0 rpx(65);
            border: none;
            background-color: #fff;
            border-radius: rpx(40);
            outline: none;
        }

        button {
            flex: 0 0 4em;
            padding: 0;
            height: 100%;
            font-size: rpx(28);
            color: #666;
            text-align: center;
            margin-right: rpx(-30);
            display: none;
        }

        .iconfont {
            position: absolute;
            left: rpx(15);
            top: rpx(17);
            font-size: rpx(35);
        }

        .clear-text {
            left: auto;
            right: rpx(15);
            font-size: rpx(40);
            cursor: pointer;
        }
    }

    .search-wrapper-template-modal {
        display: none;
        width: 100%;
        height: calc(100vh - #{rpx(90)});
        background-color: #fff;
        padding: 0 rpx(30) rpx(30);

        .s-title {
            font-size: rpx(22);
            height: rpx(60);
            display: flex;
            align-items: center;
            color: #999;
        }

        .s-wrap {
            display: flex;
            flex-wrap: wrap;

            .item {
                display: inline-block;
                height: rpx(60);
                border-radius: 3px;
                font-size: rpx(25);
                white-space: nowrap;
                color: #555;
                margin: 0 rpx(15) rpx(15) 0;
                background-color: #f5f5f5;

                &:after {
                    box-shadow: none;
                    border: none;
                    background: transparent;
                }

                &.button-hover {
                    background-color: #eee !important;
                }
            }
        }

        .clear-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: rpx(30) auto;
            width: rpx(230);
            font-size: rpx(25);
            color: #666;
            border-radius: rpx(35);
            height: rpx(70);
            background: #fff;
            border: 1px solid #f5f5f5;
        }
    }
}
